#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  decode.py
#       Author @  Huoty
#  Create date @  2015-12-21 20:40:00
#  Description @
# *************************************************************

import json

# Script starts from here

fd=open('urls.json','r')

fav = json.load(fd)
for category, urls in fav.iteritems():
    print "--------", category, "----------"
    for f in urls:
        print "name-->", f["name"]
        print "url-->", f["url"]
        print "icon-->", f["icon"]
        print "title-->", f["title"]
        print "        ----      "
fd.close()
